Assignemnt: #119 and Number Puzzles IV: A New Hope

Code
/// Name: Yordan Rashkov
/// Period: 7
/// Program Name: Number Puzzles IV: A New Hope
/// File Name: np4.java
/// Date Finished: 5/5/2016

public class np4
{
	public static void main( String[] args ) throws Exception
	{
		System.out.println();

		for ( int x = 1; x < 43; x++)
		{
			for ( int s = 1; s < 43; s++)
			{
				for ( int q = 1; q < 43; q++)
				{
					for ( int o = 1; o < 43; o++)
					{
						if ( (x+s+q+o)==45 && x+2==s-2 && q*2==o/2 && s-2==q*2 )
							System.out.print(" "+x+" "+s+" "+q+" "+o+"\n");
					}
				}
			}
		}

		System.out.println("Guuuuuud Job!");
	}
}